{template 'header'}
<style>

.onlyshare{cursor:pointer;}

</style>
<div class="main">
    <ul class="nav nav-tabs">

    </ul>
    
 
    <div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
        	<input type="hidden" name="m" value="tyzm_duiba" />
        	<input type="hidden" name="do" value="manage" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
				<div class="col-sm-8 col-lg-9">
					<input class="form-control" name="keyword" id="" placeholder="输入订单号或兑吧订单号" type="text" value="{$_GPC['keyword']}">
				</div>
                                <div class=" col-xs-12 col-sm-2 col-lg-2">
					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
				</div>
			</div>
 			<div class="form-group">
			</div>
		</form>
	</div>
 
    </div>
	 <div class="alert alert-info">
		<strong class="text-danger"><i class="fa fa-info-circle"></i> 更多更详细信息请至兑吧后台“我的订单”查看</strong><br>
		
	</div>
    <div style="padding:15px;">
        <table class="table table-hover">
            <thead class="navbar-inner">
                <tr>
					<th  width="60">用户</th>	
                    <th >订单号</th>										
					<th >兑吧订单号</th>
                    <th width="75">消耗积分</th>										
					<th width="75">市场价值</th>
                    <th width="75">扣除费用</th>
					<th width="125">用户IP</th>
					<th>描述</th>
					<th>时间</th>
                    <th width="80">状态</th>
                    <th style="width: 50px;">操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $list $row}
                <tr>

                  
					<td style="text-align:center"><img src="{$row['avatar']}" width="48"><br />{$row['nickname']}</td>
					<td>{$row['bizId']}</td>										
					<td>{$row['orderNum']}</td>
                    <td><span class="label label-success">{$row['credits']}</span></td>
	                <td  width="100">{php echo $row['facePrice']/100;}元</td>
                    <td>{php echo $row[actualPrice]/100;}元</td>
					<td>{$row['ip']}</td>
					<td>{$row['description']}</td>
					<td>{php echo date('Y-m-d H:i:s',$row['createtime'])}</td>
                    <td>{if $row['status']==0}<span class="label label-info">兑换中</span> {elseif $row['status']==1}<span class="label label-success">兑换成功</span>
{elseif $row['status']==2}<span class="label label-danger">兑换失败</span> {/if}
					</td>
                    <td >
					
                    </td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {$pager}
    </div>

</div>

<script>
            function drop_confirm(msg, url){
            if (confirm(msg)){
            window.location = url;
            }
            }
</script>

{template 'footer'}